﻿using LPY.LeHealth.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LPY.LeHealth.DTO;
using System.Web.Services;

namespace LPY.LeHealth.WebSite
{
    public class RegionController : Controller
    {
        private RegionService regionController;
        public RegionController()
        {
            regionController = new RegionService();
        }
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 根据城市ID查找对应区
        /// </summary>
        /// <returns></returns>
        [WebMethod] 
        public JsonResult SelRegion()
        {
            List<Region> list = regionController.SelRegion(1);
            return Json(list, JsonRequestBehavior.AllowGet);
        }

	}
}